package moe.oil.exception.email;

import moe.oil.exception.ErrorType;
import moe.oil.exception.ServiceException;
import org.springframework.http.HttpStatus;

public class EmailExistException extends ServiceException {
    public EmailExistException(String email) {
        super(
                String.format("Email %s already exist", email),
                HttpStatus.BAD_REQUEST,
                ErrorType.INVALID,
                email
        );
    }
}
